﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SLotteryReqLockMsg extends IMessageBase
    {
        public var zoneB:int;
        public var entityId:SEntityId;
        public var channelId:int;
        public var level:int;
        public var times:int;
        public var addMainPool:int;
        public var addDeputyPool:Number;
        public const _type:int = 209;
        public static var _regist:SLotteryReqLockMsg = new SLotteryReqLockMsg(true);

        public function SLotteryReqLockMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SLotteryReqLockMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.zoneB);
            this.entityId.__write(param1);
            param1.writeInt(this.channelId);
            param1.writeInt(this.level);
            param1.writeInt(this.times);
            param1.writeInt(this.addMainPool);
            param1.writeFloat(this.addDeputyPool);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.zoneB = param1.readInt();
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.channelId = param1.readInt();
            this.level = param1.readInt();
            this.times = param1.readInt();
            this.addMainPool = param1.readInt();
            this.addDeputyPool = param1.readFloat();
            return;
        }// end function

    }
}
